package com.lyl.activiti.demo.listener;

import org.activiti.engine.delegate.BpmnError;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;

public class EmbededJavaDelegate implements JavaDelegate{

	public void execute(DelegateExecution execution) throws Exception {
		System.out.println("执行子流程Service Task的Java Delegate,抛出错误");
		throw new BpmnError("myError");
//		throw new Exception();
	}

}
